package oracle.apps.financials.collection.po;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "c_metrics_raw")
public class MetricsRaw {

	@DatabaseField(generatedId = true)
	private Integer raw_id;
	@DatabaseField(canBeNull = false, index = true)
	private Date itemTime;
	@DatabaseField
	private String riskProfile;
	@DatabaseField
	private String businessUnit;
	@DatabaseField
	private String lineOfBusiness;
	@DatabaseField
	private Date createTime = new Date();

	@DatabaseField
	private double totalAR;
	
	@DatabaseField
	private double totalCreditSales;
	
	@DatabaseField
	private double invoiceAmount;
	
	@DatabaseField
	private double netBalance;
	@DatabaseField
	private double accountOverdue;
	
	@DatabaseField
	private String currency;
	
	@DatabaseField
	private double currentAR;
	@DatabaseField
	private double ar1To30DaysDelinquent;
	@DatabaseField
	private double ar31To60DaysDelinquent;
	@DatabaseField
	private double ar61To90DaysDelinquent;
	@DatabaseField
	private double ar90OverDaysDelinquent;

	@DatabaseField(canBeNull = true, foreign = true, foreignAutoRefresh = true, columnName = "customerID")
	private Customer customer;

	

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Date getItemTime() {
		return itemTime;
	}

	public void setItemTime(Date itemTime) {
		this.itemTime = itemTime;
	}

	public String getRiskProfile() {
		return riskProfile;
	}

	public void setRiskProfile(String riskProfile) {
		this.riskProfile = riskProfile;
	}

	public String getBusinessUnit() {
		return businessUnit;
	}

	public void setBusinessUnit(String businessUnit) {
		this.businessUnit = businessUnit;
	}

	public String getLineOfBusiness() {
		return lineOfBusiness;
	}

	public void setLineOfBusiness(String lineOfBusiness) {
		this.lineOfBusiness = lineOfBusiness;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getRaw_id() {
		return raw_id;
	}

	public void setRaw_id(Integer raw_id) {
		this.raw_id = raw_id;
	}

	public double getTotalAR() {
		return totalAR;
	}

	public void setTotalAR(double totalAR) {
		this.totalAR = totalAR;
	}

	public double getCurrentAR() {
		return currentAR;
	}

	public void setCurrentAR(double currentAR) {
		this.currentAR = currentAR;
	}

	public double getAr1To30DaysDelinquent() {
		return ar1To30DaysDelinquent;
	}

	public void setAr1To30DaysDelinquent(double ar1To30DaysDelinquent) {
		this.ar1To30DaysDelinquent = ar1To30DaysDelinquent;
	}

	public double getAr31To60DaysDelinquent() {
		return ar31To60DaysDelinquent;
	}

	public void setAr31To60DaysDelinquent(double ar31To60DaysDelinquent) {
		this.ar31To60DaysDelinquent = ar31To60DaysDelinquent;
	}

	public double getAr61To90DaysDelinquent() {
		return ar61To90DaysDelinquent;
	}

	public void setAr61To90DaysDelinquent(double ar61To90DaysDelinquent) {
		this.ar61To90DaysDelinquent = ar61To90DaysDelinquent;
	}

	public double getAr90OverDaysDelinquent() {
		return ar90OverDaysDelinquent;
	}

	public void setAr90OverDaysDelinquent(double ar90OverDaysDelinquent) {
		this.ar90OverDaysDelinquent = ar90OverDaysDelinquent;
	}

	public double getTotalCreditSales() {
		return totalCreditSales;
	}

	public void setTotalCreditSales(double totalCreditSales) {
		this.totalCreditSales = totalCreditSales;
	}

	public double getInvoiceAmount() {
		return invoiceAmount;
	}

	public void setInvoiceAmount(double invoiceAmount) {
		this.invoiceAmount = invoiceAmount;
	}

	public double getNetBalance() {
		return netBalance;
	}

	public void setNetBalance(double netBalance) {
		this.netBalance = netBalance;
	}

	public double getAccountOverdue() {
		return accountOverdue;
	}

	public void setAccountOverdue(double accountOverdue) {
		this.accountOverdue = accountOverdue;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}
}
